home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 201 / DPCS1104.ISO / Full / QuickBooks / QBTutor / Lesson2 / Lesson2.dcr / 00118_list double-click.ls < prev    next >
Encoding:
Text File  |  2001-11-19  |  982 b   |  30 lines

  1. global jobsOnList, listItemNumber, listEditable, listInduhvidual, immutableCustomers, mutableCustomers
  2.  
  3. on mouseUp me
  4.   if the doubleClick then
  5.     if jobsOnList = "TRUE" then
  6.       if (listItemNumber > 0) and (listItemNumber < 3) then
  7.         listItemNumber = -1
  8.       end if
  9.       if listItemNumber > 2 then
  10.         listItemNumber = listItemNumber - 2
  11.       end if
  12.     end if
  13.     if listItemNumber >= 0 then
  14.       if listItemNumber < immutableCustomers.count then
  15.         listEditable = "FALSE"
  16.         listInduhvidual = listItemNumber + 1
  17.         fillInCustomerFields(immutableCustomers[listInduhvidual])
  18.         go("Edit Cust 1")
  19.       else
  20.         if listItemNumber < (immutableCustomers.count + mutableCustomers.count) then
  21.           listEditable = "TRUE"
  22.           listInduhvidual = listItemNumber - immutableCustomers.count + 1
  23.           fillInCustomerFields(mutableCustomers[listInduhvidual])
  24.           go("Edit Cust 1")
  25.         end if
  26.       end if
  27.     end if
  28.   end if
  29. end
  30.